//
// Created by hujin on 2020/11/8.
//

#ifndef C_MIPS_CMPLR_VAR_INDEXER_H
#define C_MIPS_CMPLR_VAR_INDEXER_H

#include <map>

class VarIndexer{
    int tot_positive = 0;
    int tot_negative = 0;//negative --> temp var
public:
    void loadSymblTable(SymbolTable *table){
        tot_positive = table->getIDCnt();
    }
    int getTempUid(){
        return --tot_negative;
    }
};
#endif //C_MIPS_CMPLR_VAR_INDEXER_H
